<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">头像:</label>
        <div class="col-xs-12 col-sm-8">
            <img src="{$user.avatar}" style="width: 60px;"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">昵称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" class="form-control" disabled type="text" value="{$user.nickname|htmlentities}">
        </div>
    </div>
    {volist name="content" id="vo"}
    {if $vo['type'] == 'image'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$vo.label}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="textarea" value="{$vo.value|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>

                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    {elseif $vo['type'] == 'video'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$vo.label}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-attachfile" class="form-control" size="50" name="row[attachfile]" type="text" value="{$vo.value|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-attachfile" class="btn btn-danger faupload" data-input-id="c-attachfile" data-multiple="false" data-preview-id="p-attachfile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-attachfile"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-attachfile"></ul>
        </div>
    </div>
    {else /}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$vo.label}:</label>
        <div class="col-xs-12 col-sm-8">
            {if !empty($vo['value'])}
            <input id="c-{$vo.field}" class="form-control" disabled name="row[{$i-1}][{$vo.field}]" type="text" value="{$vo.value|htmlentities}">
            {/if}
        </div>
    </div>
    {/if}
    {/volist}
</form>
